import request from '@/utils/request'

export function fetchAppoint() {
  return request({
    url: '/appoint-info/get-All',
    method: 'get'
  })
}

export function fetchAppointOrder(data) {
  return request({
    url: '/appoint-order/get-page/byAppointName/NotRequired',
    method: 'get',
    params: data
  })
}

export function fetchAppointOrderData(data) {
  return request({
    url: '/appoint-order/get-completedOrderInfo/byAppointName/NotRequired',
    method: 'get',
    params: data
  })
}

export function updateAppointOrder(data) {
  return request({
    url: '/appoint-order/update-orderProcess/byId',
    method: 'put',
    params: data
  })
}

export function deleteAppoint(data) {
  return request({
    url: '/appoint-info/delete/ById',
    method: 'delete',
    params: data
  })
}
